package returnDataStruct;

import pojo.room;
import pojo.user;

import java.util.ArrayList;
import java.util.List;

public class roomDetailData {
    roomData room;
    List<roomerData> persons;

    public roomDetailData(room r, List<user> ul){
        room = new roomData(r);
        persons = new ArrayList<>();
        for(user u:ul){
            persons.add(new roomerData(u,1));
        }
    }

    public roomData getRoom() {
        return room;
    }

    public void setRoom(roomData room) {
        this.room = room;
    }

    public List<roomerData> getPersons() {
        return persons;
    }

    public void setPersons(List<roomerData> persons) {
        this.persons = persons;
    }
}
